package com.woniuxy.service;

import com.woniuxy.pojo.User;

/**
 * @Author 罗蔚
 * @Date 2022/3/26 16:04
 * @Description TODO
 */
public interface UserService {
    //用户名是否存在
    public boolean existUsername(String username);
    //注册
    public void regist(User user);

    //登录时
    public User findUsernameAndPassword(String username, String password);

    public boolean checkPassword(int uid, String password);

    public void changePassword(int uid, String newpassword);
}
